using System;
using System.Text.Json.Serialization;

namespace JT808Protocol.Models.BodyParserStrategy.Location.LocationAddition
{
    public class AlarmLogo
    {
        /// <summary>
        /// 终端ID
        /// </summary>
        [JsonPropertyName("终端ID")] public string DeviceID { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        [JsonPropertyName("时间")] public DateTime Time { get; set; }

        /// <summary>
        /// 序号
        /// </summary>
        [JsonPropertyName("序号")] public byte Sn { get; set; }

        /// <summary>
        /// 附件数量
        /// </summary>
        [JsonPropertyName("附件数量")] public byte AttachmentCount { get; set; }

        /// <summary>
        /// 预留,长度为2
        /// </summary>
        [JsonPropertyName("预留")] public byte[] NoDefine { get; set; }

        /// <summary>
        /// 报警标识原始数据
        /// </summary>
        [JsonIgnore]
        public byte[] OriginalData { get; set; }

        public virtual void ReadEntity(ReadOnlySpan<byte> readBuffer, ref int startIndex) => throw new NotImplementedException("报警标识解析方法未实现");
    }
}